<?php
ini_set("session.cookie_domain", ".wnyhsports.com");
$CONFIG['site'] = "beta.wnyhsports.com";
include("inc/config.php");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>WNYHSports.com</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<link href="style.css" rel="stylesheet" type="text/css" />
<link href="layout.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" media="all" href="css/nivo-slider.css" />
<script src="js/jquery-1.3.2.min.js" type="text/javascript"></script>
<script src="js/cufon-yui.js" type="text/javascript"></script>
<script src="js/cufon-replace.js" type="text/javascript"></script>
<script src="js/Swis721_BlkCn_BT_italic_400.font.js" type="text/javascript"></script>
<script type="text/javascript" src="js/loopedcarousel.js"></script>
<script src="js/jquery.nivo.slider.pack.js" type="text/javascript"></script>
<script type="text/javascript">
$(function() {
	// carousel
	$('.loopedCarousel').loopedCarousel();
});
</script>
<script type="text/javascript" src="js/tabs.js"></script>
<!--[if lt IE 7]>
	<link href="ie_style.css" rel="stylesheet" type="text/css" />
<![endif]-->
</head>
<body id="page1">
<div class="main-bg">
  <div id="main">
    <!-- header -->
    <div id="header">
      <div>
        <center>
          <img src="images/logo.png" />
        </center>
      </div>
    </div>
    <!-- content -->
    <div id="content">
      <!-- .mainContent -->
      <div class="mainContent">
        <div class="row-1">
          <div class="indent" style="margin-bottom:-55px;">
            <div class="wrapper">
              <div class="col-1">
                <div class="tabs-wrap">
                  <h2 class="extra-title">Latest News</h2>
                  <!-- tabs begin -->
                  <ul class="tabs">
                    <li><a href="#tab1">baseball</a></li>
                    <li><a href="#tab2">golf</a></li>
                    <li><a href="#tab3">hockey</a></li>
                    <li><a href="#tab4">tennis</a></li>
                  </ul>
                </div>
                <div class="tab_container">
                  <div id="tab1" class="tab_content">
                    <div class="loopedCarousel">
                      <div class="container">
                        <div class="slides">
                          <div>
                            <dl>
                              <dt><a href="#"><img src="images/thumn.png" alt="" /></a></dt>
                              <dd> <strong>New age of science</strong> 12.22.2010 </dd>
                              <dd class="last" style="text-align:center"> <a href="#">Read More...</a> </dd>
                            </dl>
                          </div>
                          <div>
                            <dl>
                              <dt><a href="#"><img src="images/thumn.png" alt="" /></a></dt>
                              <dd> <strong>Star House 5</strong> 12.22.2010 </dd>
                              <dd class="last" style="text-align:center"> <a href="#">Read More...</a> </dd>
                            </dl>
                          </div>
                          <div>
                            <dl>
                              <dt><a href="#"><img src="images/thumn.png" alt="" /></a></dt>
                              <dd> <strong>Famous criminals</strong> 12.22.2010 </dd>
                              <dd class="last" style="text-align:center"> <a href="#">Read More...</a> </dd>
                            </dl>
                          </div>
                          <div>
                            <dl>
                              <dt><a href="#"><img src="images/thumn.png" alt="" /></a></dt>
                              <dd> <strong>Sky Masters</strong> 12.22.2010 </dd>
                              <dd class="last" style="text-align:center"> <a href="#">Read More...</a> </dd>
                            </dl>
                          </div>
                          <div>5</div>
                          <div>6</div>
                          <div>7</div>
                          <div>8</div>
                          <div>9</div>
                          <div>10</div>
                          <div>11</div>
                          <div>12</div>
                          <div>13</div>
                          <div>14</div>
                          <div>15</div>
                        </div>
                      </div>
                    </div>
                  </div>
                  <div id="tab2" class="tab_content">
                    <div class="loopedCarousel">
                      <div class="container">
                        <div class="slides">
                          <div>
                            <dl>
                              <dt><a href="#"><img src="images/thumn.png" alt="" /></a></dt>
                              <dd> <strong>New age of science</strong> 12.22.2010 </dd>
                              <dd class="last" style="text-align:center"> <a href="#">Read More...</a> </dd>
                            </dl>
                          </div>
                          <div>
                            <dl>
                              <dt><a href="#"><img src="images/thumn.png" alt="" /></a></dt>
                              <dd> <strong>Star House 5</strong> 12.22.2010 </dd>
                              <dd class="last" style="text-align:center"> <a href="#">Read More...</a> </dd>
                            </dl>
                          </div>
                          <div>
                            <dl>
                              <dt><a href="#"><img src="images/thumn.png" alt="" /></a></dt>
                              <dd> <strong>Famous criminals</strong> 12.22.2010 </dd>
                              <dd class="last" style="text-align:center"> <a href="#">Read More...</a> </dd>
                            </dl>
                          </div>
                          <div>
                            <dl>
                              <dt><a href="#"><img src="images/thumn.png" alt="" /></a></dt>
                              <dd> <strong>Sky Masters</strong> 12.22.2010 </dd>
                              <dd class="last" style="text-align:center"> <a href="#">Read More...</a> </dd>
                            </dl>
                          </div>
                          <div>5</div>
                          <div>6</div>
                          <div>7</div>
                          <div>8</div>
                          <div>9</div>
                          <div>10</div>
                          <div>11</div>
                          <div>12</div>
                          <div>13</div>
                          <div>14</div>
                          <div>15</div>
                        </div>
                      </div>
                    </div>
                  </div>
                  <div id="tab3" class="tab_content">
                    <div class="loopedCarousel">
                      <div class="container">
                        <div class="slides">
                          <div>
                            <dl>
                              <dt><a href="#"><img src="images/thumn.png" alt="" /></a></dt>
                              <dd> <strong>New age of science</strong> 12.22.2010 </dd>
                              <dd class="last" style="text-align:center"> <a href="#">Read More...</a> </dd>
                            </dl>
                          </div>
                          <div>
                            <dl>
                              <dt><a href="#"><img src="images/thumn.png" alt="" /></a></dt>
                              <dd> <strong>Star House 5</strong> 12.22.2010 </dd>
                              <dd class="last" style="text-align:center"> <a href="#">Read More...</a> </dd>
                            </dl>
                          </div>
                          <div>
                            <dl>
                              <dt><a href="#"><img src="images/thumn.png" alt="" /></a></dt>
                              <dd> <strong>Famous criminals</strong> 12.22.2010 </dd>
                              <dd class="last" style="text-align:center"> <a href="#">Read More...</a> </dd>
                            </dl>
                          </div>
                          <div>
                            <dl>
                              <dt><a href="#"><img src="images/thumn.png" alt="" /></a></dt>
                              <dd> <strong>Sky Masters</strong> 12.22.2010 </dd>
                              <dd class="last" style="text-align:center"> <a href="#">Read More...</a> </dd>
                            </dl>
                          </div>
                          <div>5</div>
                          <div>6</div>
                          <div>7</div>
                          <div>8</div>
                          <div>9</div>
                          <div>10</div>
                          <div>11</div>
                          <div>12</div>
                          <div>13</div>
                          <div>14</div>
                          <div>15</div>
                        </div>
                      </div>
                    </div>
                  </div>
                  <div id="tab4" class="tab_content">
                    <div class="loopedCarousel">
                      <div class="container">
                        <div class="slides">
                          <div>
                            <dl>
                              <dt><a href="#"><img src="images/thumn.png" alt="" /></a></dt>
                              <dd> <strong>New age of science</strong> 12.22.2010 </dd>
                              <dd class="last" style="text-align:center"> <a href="#">Read More...</a> </dd>
                            </dl>
                          </div>
                          <div>
                            <dl>
                              <dt><a href="#"><img src="images/thumn.png" alt="" /></a></dt>
                              <dd> <strong>Star House 5</strong> 12.22.2010 </dd>
                              <dd class="last" style="text-align:center"> <a href="#">Read More...</a> </dd>
                            </dl>
                          </div>
                          <div>
                            <dl>
                              <dt><a href="#"><img src="images/thumn.png" alt="" /></a></dt>
                              <dd> <strong>Famous criminals</strong> 12.22.2010 </dd>
                              <dd class="last" style="text-align:center"> <a href="#">Read More...</a> </dd>
                            </dl>
                          </div>
                          <div>
                            <dl>
                              <dt><a href="#"><img src="images/thumn.png" alt="" /></a></dt>
                              <dd> <strong>Sky Masters</strong> 12.22.2010 </dd>
                              <dd class="last" style="text-align:center"> <a href="#">Read More...</a> </dd>
                            </dl>
                          </div>
                          <div>5</div>
                          <div>6</div>
                          <div>7</div>
                          <div>8</div>
                          <div>9</div>
                          <div>10</div>
                          <div>11</div>
                          <div>12</div>
                          <div>13</div>
                          <div>14</div>
                          <div>15</div>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
                <!-- tabs end -->
              </div>
              <div class="col-2">
                <!-- .banners -->
                <ul class="banners">
                  <li><a href="#"><img src="images/banner.gif" alt="" /></a></li>
                  <li class="alt"><a href="#"><img src="images/banner.gif" alt="" /></a></li>
                  <li><a href="#"><img src="images/banner.gif" alt="" /></a></li>
                  <li class="alt"><a href="#"><img src="images/banner.gif" alt="" /></a></li>
                </ul>
                <!-- /.banners -->
              </div>
            </div>
          </div>
        </div>
        <div class="row-2">
          <div class="indent">
            <div class="line-ver">
              <div class="wrapper line-ver1">
                <div class="col-1">
                  <h2>WNYHSports Poll</h2>
				<?php
				$sql = "SELECT * FROM `wnsp_poll_questions` WHERE `is_active` = '1'";
				$q = db::Query($sql);
				$question = $q->fetch();
				?>
      <h4 style="margin-bottom:-10px;"><?php echo $question['question'] ?></h4>
      <br/>
      <form class="niceform" method="post">
        <?php
						$sql = "SELECT * FROM  `wnsp_poll_options` WHERE `question_id` = :id";
						$q = db::Query($sql, array(':id'=>$question['question_id']));
						$row = $q->fetch();
						?>
        <?php if($row['option1'] != NULL){ ?>
        <input type="radio" name="answer" id="answer1" value="1"/>
        <label for="answer1" class="opt"> <?php echo $row['option1'] ?> </label>
        <br/>
        <?php } ?>
        <?php if($row['option2'] != NULL){ ?>
        <input type="radio" name="answer" id="answer2" value="2"/>
        <label for="answer2" class="opt"> <?php echo $row['option2'] ?> </label>
        <br/>
        <?php } ?>
        <?php if($row['option3'] != NULL){ ?>
        <input type="radio" name="answer" id="answer3" value="3"/>
        <label for="answer3" class="opt"> <?php echo $row['option3'] ?> </label>
        <br/>
        <?php } ?>
        <?php if($row['option4'] != NULL){ ?>
        <input type="radio" name="answer" id="answer4" value="4"/>
        <label for="answer4" class="opt"> <?php echo $row['option4'] ?> </label>
        <br/>
        <?php } ?>
        <input type="hidden" name="question_id" value="<?php echo $question['question_id'] ?>" />
        <center>
          <input type="submit" value="Submit Poll" id="submit" />
        </center>
      </form>                   
                </div>
                <div class="col-2">
                  <h2>hot game</h2>
                  <div class="img-box"> <img src="images/1page-img2.jpg" alt="" />
                    <h4>Lorem ipsumlor</h4>
                    Sit amet, consec tetuer adipiscing elit. Praesent vestibulum moles tie lacus </div>
                  <div class="wrapper"><a href="#" class="link1 "><em><b>learn more</b></em></a></div>
                </div>
                <div class="col-3">
                  <h2>reality show</h2>
                  <div class="img-box"> <img src="images/1page-img3.jpg" alt="" />
                    <h4>Lorem ipsumlor</h4>
                    Sit amet, consec tetuer adipiscing elit. Praesent vestibulum moles tie lacus </div>
                  <div class="wrapper"><a href="#" class="link1 "><em><b>learn more</b></em></a></div>
                </div>
              </div>
            </div>
          </div>
        </div>
        
      <!-- /.mainContent -->
      <!-- .extraContent -->
      <div class="extraContent">
        <div class="line-ver-extra">
          <div class="line-ver-extra1">
            <div class="wrapper line-ver-extra2">
              <div class="col-1">
                <h5>Spring Sports</h5>
                <ul class="list2">
                  <li><a href="#">Lorem ipsum dolor sit amet</a></li>
                  <li><a href="#">Praesent ves tibu lumole</a></li>
                  <li><a href="#">Aenean non ummy hendrerit</a></li>
                  <li><a href="#">Fusce suscipit</a></li>
                </ul>
              </div>
              <div class="col-2">
                <h5>Check It Out</h5>
                <ul class="list2">
                  <li><a href="#">Lorem ipsum dolor sit amet</a></li>
                  <li><a href="#">Praesent ves tibu lumole</a></li>
                  <li><a href="#">Aenean non ummy hendrerit</a></li>
                  <li><a href="#">Fusce suscipit</a></li>
                </ul>
              </div>
              <div class="col-3">
                <h5>Partners</h5>
                <ul class="list2">
                  <li><a href="#">Lorem ipsum dolor sit amet</a></li>
                  <li><a href="#">Praesent ves tibu lumole</a></li>
                  <li><a href="#">Aenean non ummy hendrerit</a></li>
                  <li><a href="#">Fusce suscipit</a></li>
                </ul>
              </div>
              <div class="col-4">
                <h5>Here and There</h5>
                <ul class="list2">
                  <li><a href="#">Lorem ipsum dolor sit amet</a></li>
                  <li><a href="#">Praesent ves tibu lumole</a></li>
                  <li><a href="#">Aenean non ummy hendrerit</a></li>
                  <li><a href="#">Fusce suscipit</a></li>
                </ul>
              </div>
            </div>
          </div>
        </div>
      </div>
      <!-- /.extraContent -->
    </div>
    <!-- footer -->
    <div id="footer"> WNYHSports &copy; 2010</div>
  </div>
</div>
<script type="text/javascript"> Cufon.now(); </script>
</body>
</html>